package com.buba.shirodemo.service.impl;

import com.buba.shirodemo.dao.UserMapper;
import com.buba.shirodemo.pojo.User;
import com.buba.shirodemo.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class UserServiceImpl  implements UserService {
    @Autowired
    private UserMapper userMapper;

    @Override
    public User queryUsetByName(String name) {
        return userMapper.queryUsetByName(name);
    }

    @Override
    public boolean registerUser(User user) {
        return userMapper.registerUser(user);
    }
}
